<%@ Page Language="C#" EnableViewState="false" ValidateRequest="false" AutoEventWireup="true" 
	Inherits="Syrinx.Gui.AspNet.Ajax.NitobiBasePage" MasterPageFile="~/App_ThemeMasters/NoStyle/AdminOneColumnLayout.Master" EnableEventValidation="false" %>

<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="ScsAspNet" Namespace="Syrinx.Gui.AspNet.Ajax" TagPrefix="saj" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>
<%@ Register Assembly="ScsAspNet" Namespace="Articles.Gui.AspNet" TagPrefix="art" %>

<!--#include file="~/SiteControls/RegisterStandardControls.txt"-->
<!--#include file="../SiteControls/StandardAdminHeaderPageContent.inc"-->
<!--#include file="../SiteControls/StandardFooterPageContent.inc"-->
<script runat="server">
	public string TitleFormat = "$company.name$ - Rss Channel Management";
</script>

<asp:Content ID="c1" ContentPlaceHolderID="title" runat="server">
	<%SecurityPrivilege = "AppFunctions.ManageCompanyConfiguration"; %>
    <h1 ID="_title" runat="server">Rss Channel Management</h1>
    <swf:BizProc ID="rss" runat="server" FactoryName="rssChannels" />
</asp:Content>

<asp:Content ID="c3" ContentPlaceHolderID="mainContent" runat="server">
	<span class="button2"><saj:ActionButton runat="server" ID="cancelBtn" Actions="rss.UpdateBizObj" Text="Update" /></span>
	<span class="button5"><saj:ActionButton runat="server" ID="deleteBtn" Actions="rss.DeleteBizObj" Text="Delete" ClientClick="if(!confirm('Are you sure you want to delete?'))return false;"/></span>
	<br />
	<saj:Grid  ID="rl1" runat="server" Width="740px" Height="250px"  
		ShowToolbar="false" ParentBizProcIds="rss" Mode="LiveScrolling">
		<Columns>
			<ntb:KeyColumn DataField="id" visible="false" />
			<ntb:BoundColumn DataField="rootArticle.title" HeaderText="Root Article" width="300"  />
			<ntb:CheckboxColumn DataField="includePodCastAttribs" HeaderText="Is PodCast" width="100" ReadOnly="false" />
			<ntb:CheckboxColumn DataField="entireTree" HeaderText="All Children" width="75"  ReadOnly="false" />
			<ntb:ComboColumn DataField="leafNodes" HeaderText="Leaf Nodes" width="150" GetDataUrl="/NitobiLiveStreamHandler.aspx" DataSourceId="getRssLeafNodeOptions" ValueField="id" ReadOnly="false">
				<ntb:BoundColumn DataField="id" Visible="false" />
				<ntb:BoundColumn DataField="title" Width="280" />				
			</ntb:ComboColumn>
		</Columns>
	</saj:Grid>		
	<br />
	<saj:NitobiBizObjDisplay ID="rd1" runat="server"
		ReadOnlyTemplate="Articles.Gui.AspNet.RssRWDisplay" ParentBizProcIds="rss" />
	
</asp:Content>
